<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('company/index')}">所有地区</a></li>
        <li><a href="{:url('company/add')}">添加地区</a></li>
        <li class="active"><a href="JavaScript:;">编辑地区</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('company/editPost')}">
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">名称<span class="form-required">*</span></label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-name" name="name" value="{$info.name}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-user_id" class="col-sm-2 control-label">管理员用户</label>
            <div class="col-md-6 col-sm-10">
                <select name="user_id" id="input-user_id">
                    <option>请选择</option>
                    <foreach name="users" item="vo">
                        <option <if condition="$vo.id eq $info.user_id">selected</if> value="{$vo['id']}">{$vo['user_login']}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" name="id" value="{$info['id']}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>